﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine.UI;

// 奔跑距离
public class DistanceUI
{
    Text _text;
    public DistanceUI()
    {
        var obj = UIManager.Instance.AddUI("UI/FightUI/DistanceUI", UILayer.FightUI);
        _text = obj.FindComponent<Text>("Text");
    }

    public int Dis { set { _text.text = string.Format("{0}米", value); } }

}

